import cv2
import matplotlib.pyplot as plt
import numpy as np


def show(img):
    cv2.imshow("img", img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

# 灰度图
img = cv2.imread("./01_Picture/01_cat.jpg", cv2.IMREAD_GRAYSCALE)
# 显示hwc
print(img.shape)
# 显示类型
print(img.dtype)
# 显示图片
show(img)
